package cn.cctvcc.gateway.service;

import cn.cctvcc.core.domain.R;
import cn.cctvcc.core.exception.CaptchaException;

/**
 * @description: 验证码处理
 * @author: Jiang
 * @create: 2021-09-27 14:11
 */
public interface ValidateCodeService {
    /**
     * 生成验证码
     */
    R<?> createCapcha() throws CaptchaException;

    /**
     * 校验验证码
     */
    void checkCapcha(String key, String value) throws CaptchaException;
}
